<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
export default {
  name: 'App',
  computed: { ...mapGetters({ pageData: 'pageData'}) },
  data () {
    return {
        screenHeight: document.documentElement.clientHeight,
        originHeight: document.documentElement.clientHeight
    }
  },
  watch: {
      screenHeight (val) {
        this.$store.commit('newPageData', { key: 'isOriginHei', data: !(this.originHeight > val + 100)})
    }
  },
  methods: {
  },
  mounted() {
    // this.$router.push({name: 'signName'})
      let self = this;
      window.onresize = function() {
          return (function(){
              self.screenHeight = document.documentElement.clientHeight;
          })()
        }
  }
}
</script>

<style lang="less">
body,html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #F9FBFC;
}
#app {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

h1, h2,h3, h4,
ul,li,p {
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-weight: normal;
}
li {
  display: inline-block;
}
.center {
  text-align: center;
}
.btm {
  font-size: 13.5px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #999999;
  height: 1;
  text-align: center;
}
// -webkit-line-clamp:30;
.ddd {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  white-space: nowrap;
}
.p8 {
  padding: 0 8px;
}
.p10 {
  padding: 0 10px;
}
.p12 {
  padding: 0 12px;
}
.ddd2 {
  display: block;
  overflow: hidden;
  -webkit-line-clamp:2;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ddd5 {
  display: block;
  overflow: hidden;
  -webkit-line-clamp:5;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
  .tabs{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    &>div{
      width: 100%;
      height: 100%;
    }
    .van-sticky {
      .van-tabs__wrap {
        padding-left: 6px;
        box-sizing: border-box;
        width: 100%;
      }
    }
    .van-sticky--fixed {
      top: 40px;
      width: 100%;
      padding: 0 6px;
      box-sizing: border-box;
      background: #F9FBFC;
    }
    .van-tabs__wrap {
      .van-tabs__nav {
        width: 100%;
        background: #F9FBFC;
        display: inline-block;
        .van-tab {
          display: inline-block;
          vertical-align: middle;
        }
      }
    }
  }
.van-tabs__wrap {
  .van-tabs__nav {
    .van-tab {
      height: 40px;
      line-height: 40px;
    }
    .van-tabs__line {
      width: 54px;
      background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
      box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
      border-radius: 4px;
      height: 3.5px;
      bottom: 20px;
    }
  }
}
  .fixedBtm {
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    height: 50px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    background: #FFFFFF;
    .num {
      float: left;
      font-size: 22px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 50px;
    }
    .sub {
      float: right;
      width: 150px;
      height: 40px;
      margin-top: 4px;
      border-radius: 40px;
      background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
      border: none;
    }
  }
.valueTab {
  display: inline-block;
  padding: 0 8px;
  box-sizing: border-box;
  color: #FFFFFF;
  line-height: 17.5px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  background: rgba(238, 238, 238, 0.8) !important;
  color: #958CE7 !important;
  padding-left: 0  !important;
  border-radius: 4px;
  font-size: 11px;
  .name{
    padding: 0 8px;
    border-radius: 4px;
    background: #958CE7 !important;
    color: #FFFFFF !important;
  }
}
</style>

<style>
/* #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
